﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:RichTextEditorControl="clr-namespace:RichTextEditorControl;assembly=RichTextEditorControl" x:Class="AyurvedaUI.PlantAdd"
    MaxWidth="450" MinWidth="450" Width="450" xmlns:Custom="http://schemas.odyssey.com/wpf">
	<ScrollViewer HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" HorizontalScrollBarVisibility="Disabled" VerticalContentAlignment="Stretch" VerticalAlignment="Stretch" MaxWidth="Infinity" VerticalScrollBarVisibility="Auto">
		<Grid ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" x:Name="gridAddPlant" MaxWidth="Infinity">
			<Grid.RowDefinitions>
				<RowDefinition Height="auto"/>
				<RowDefinition Height="auto"/>
				<RowDefinition Height="auto"/>
				<RowDefinition Height="auto"/>
				<RowDefinition Height="auto"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
			<Label Height="28" HorizontalAlignment="Left" x:Name="lbName" VerticalAlignment="Center" Width="47" Content="Name"/>
			<TextBox Height="23" HorizontalAlignment="Right" x:Name="tbName" VerticalAlignment="Center" Width="120" />
			<Label Height="28" HorizontalAlignment="Left" x:Name="lbLanguage" VerticalAlignment="Center" Width="58" Grid.Row="1" Content="Language"/>
			<ComboBox Height="23" HorizontalAlignment="Right" x:Name="cbLanguage" VerticalAlignment="Center" Width="120" Grid.Row="1" />
			<Button Height="23" HorizontalAlignment="Left" x:Name="btAddLanguage" VerticalAlignment="Center" Width="75" Grid.Row="2" Content="Add"/>
			<Button Height="23" HorizontalAlignment="Right" x:Name="btRemoveLanguage" VerticalAlignment="Center" Width="75" Grid.Row="2" Content="Delete"/>
			<ListView x:Name="lvPlantNames" HorizontalAlignment="Center" Width="200" Height="228" VerticalAlignment="Center" Grid.Row="3" Margin="0,5,0,5">
				<ListView.View>
					<GridView>
						<GridViewColumn Header="Name" 
							DisplayMemberBinding="{Binding Path=DefaultName}" Width="100" />
						<GridViewColumn Header="Language" 
							DisplayMemberBinding="{Binding Path=Language}" Width="100" />
					</GridView>
				</ListView.View>
			</ListView>
			<StackPanel Grid.Row="4" Grid.ColumnSpan="2">
				<Expander Header="Description" x:Name="expanderDescription" VerticalAlignment="Bottom" Margin="1,0,1,0">
					<StackPanel>
						<RichTextEditorControl:RichTextEditor Margin="6,6,6,0" x:Name="rtbDescription" />
					</StackPanel>
				</Expander>
				<Expander Header="Pictures" Margin="0,0,-1,0" x:Name="expanderPictureLoder" VerticalAlignment="Bottom">
					<StackPanel VerticalAlignment="Center">
						<Custom:RibbonGallery IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="4" Width="400" Height="200" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible"/>
						<Button Height="23" HorizontalAlignment="Left" Margin="6,6,0,0" x:Name="button1" VerticalAlignment="Center" Width="75" Content="Button"/>
					</StackPanel>
				</Expander>
			</StackPanel>
		</Grid>
	</ScrollViewer>
</UserControl>
